#include <iostream>
#include <vector>

class MObj {
public:
    int i;
    std::string name;
};

int maina() {
    std::vector<MObj> vec_m = {MObj{1, "asd"}, MObj{2, "lkj"}, MObj{3, "pou "}, MObj{8, "oiu"}};
    MObj &max = vec_m.front();
    int maxInt = INT32_MIN;
    for (
        const auto &item
            : vec_m) {
        if (item.i > maxInt) {
            max = item;
            maxInt = item.i;
        }
    }
    std::cout << max.name << "\n";
    return 0;
}